# 回合阶段常量定义
# 这个文件定义了回合阶段的常量值，避免循环引用问题
class_name TurnPhaseConstants
extends RefCounted

# 回合阶段常量 - 对应 Battle.TurnPhase 枚举
const PLAYER_START = 0      # 玩家回合开始阶段
const PLAYER_DRAW = 1       # 玩家抽牌阶段
const PLAYER_MAIN = 2       # 玩家主要阶段
const PLAYER_END = 3        # 玩家回合结束阶段
const PLAYER_DISCARD = 4    # 玩家弃牌阶段
const ENEMY_START = 5       # 敌人回合开始阶段
const ENEMY_MAIN = 6        # 敌人主要阶段
const ENEMY_END = 7         # 敌人回合结束阶段

# 阶段名称映射
static var PHASE_NAMES = {
	PLAYER_START: "玩家回合开始",
	PLAYER_DRAW: "玩家抽牌",
	PLAYER_MAIN: "玩家主要阶段",
	PLAYER_END: "玩家回合结束",
	PLAYER_DISCARD: "玩家弃牌",
	ENEMY_START: "敌人回合开始",
	ENEMY_MAIN: "敌人主要阶段",
	ENEMY_END: "敌人回合结束"
}

# 获取阶段名称
static func get_phase_name(phase: int) -> String:
	return PHASE_NAMES.get(phase, "未知阶段")
